Handler Group

These properties are available from version 5.1 of Sym3 on. These properties allow the scripting engine to enable/disable the handlers and modify some performance properties to assist in more realistic simulations.

Properties

Name Type Description
Enabled Boolean Gets/Sets a boolean to enable or disable the handler group
NumberWaitingProducts Number Gets the current number of waiting products
NumberMissedProducts Number Gets the current number of missed products (while handlers busy)
MinHandlingTime Number Gets/Sets the min handling time (in seconds) [Version >= 5.1]
MaxHandlingTime Number Gets/Sets the max handling time (in seconds) [Version >= 5.1]
MeanHandlingTime Number Gets/Sets the mean handling time (in seconds) [Version >= 5.1]
NumberOfHanlders Number Gets/Sets the number of handlers [Version >= 5.1]
LateralOffset Number Gets/Sets the lateral offset assigned to product when dropped
 

Script example:

obj = GetComponentByNameAndType("HandlerGroup1","Handler Group");
LogDebug("toggleHandler: Enabled=" + obj.Enabled);
LogDebug("Products: Waiting=" + obj.NumberWaitingProducts +
         " Missed=" + obj.NumberMissedProducts);
LogDebug("Handlers=" + obj.NumberOfHandlers +
         " HandlingTime: Min=" + obj.MinHandlingTime +
         " Max=" + obj.MaxHandlingTime +
         " Mean=" + obj.MeanHandlingTime);
obj.Enabled = !obj.Enabled; // Toggle state
obj.NumberOfHandlers = obj.NumberOfHandlers + 1;
obj.MinHandlingTime  = obj.MinHandlingTime + 1;
obj.MaxHandlingTime  = obj.MaxHandlingTime + 1;
obj.MeanHandlingTime = obj.MeanHandlingTime + 1;	
obj.LateralOffset = 0.1;